package cn.darkhorse.workorder.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.annotations.*;
import java.util.Date;
import com.ruoyi.common.annotation.Excel;

import javax.validation.constraints.Size;


/**
 * 感官检验对象 qms_workorder_sense
 *
 * @author ytq
 * @date 2024-07-19
 */
@TableName("qms_workorder_record")
@Data
@ApiModel(value = "QmsWorkorderSense", description = "感官检验对象")
public class QmsWorkorderSense
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(" 主键")
    private Long id;

    /** 流转单编号 */
    @ApiModelProperty(" 流转单编号")
    @Excel(name = "流转单编号")
    private String orderNumber;

    @ApiModelProperty(" 流转工单id")
    @TableField(value = "id")
    private Long workorderId;

    /** 样品管理员签名 */
    @ApiModelProperty(" 样品管理员签名")
    @Excel(name = "样品管理员签名")
    @TableField(value = "balance_administrator_sign_sense")
    private String sampleAdministratorSign;

    /** 感官检验员签名 */
    @ApiModelProperty(" 感官检验员签名")
    @Excel(name = "感官检验员签名")
    @TableField(value = "sense_inspector_sign_sense")
    private String senseInspectorSign;
    /** 感官检验员签名 */
    @ApiModelProperty(" 感官检验负责人签名")
    @Excel(name = "感官检验负责人签名")
    @TableField(value = "sense_principal_sign")
    private String sensePrincipalSign;

    /** 情况及处理意见 */
    @ApiModelProperty(" 情况及处理意见")
    @Excel(name = "情况及处理意见")
    @TableField(value = "opinion_sense")
    @Size(max = 20, message ="限制1-20个字符")
    private String opinion;

    /** 处理时间 */
    @ApiModelProperty(" 处理时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "over_time_sense")
    private Date overTime;

    /** 交接时间 */
    @ApiModelProperty(" 交接时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "交接时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    @TableField(value = "delivery_time_sense")
    private Date deliveryTime;

    /** 交接时间 */
    @ApiModelProperty("样品平衡交接时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "样品平衡交接时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
//    @TableField(value = "delivery_time_balance")
    private Date deliveryTimeBalance;



    /** 车数 */
    @ApiModelProperty(" 车数")
    @Excel(name = "车数")
    private String carSum;
    /** 车数 */
    @ApiModelProperty(" 车号")
    @Excel(name = "车号")
    private String carNumber;

    /** 创建时间 */
    @ApiModelProperty(" 创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")

    private Date createTime;

    /** 创建人 */
    @ApiModelProperty(" 创建人")
    private String createBy;

    /** 创建人id */
    @ApiModelProperty(" 创建人id")
    @Excel(name = "创建人id")
    private Long createById;

    @TableField(exist = false)
    private int type;

}
